//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.题库.未分类;

public class demo_2278 {
    public demo_2278() {
    }

    public int percentageLetter(String s, char letter) {
        int count = 0;

        for(int i = 0; i < s.length(); ++i) {
            if (s.charAt(i) == letter) {
                ++count;
            }
        }

        return count * 100 / s.length();
    }
}
